Optimal. Leaf size=67 \[ \frac {\log (x) (b c-a d)^2}{a^3}-\frac {(b c-a d)^2 \log (a+b x)}{a^3}+\frac {c (b c-2 a d)}{a^2 x}-\frac {c^2}{2 a x^2} \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {88} \begin {gather*} \frac {c (b c-2 a d)}{a^2 x}+\frac {\log (x) (b c-a d)^2}{a^3}-\frac {(b c-a d)^2 \log (a+b x)}{a^3}-\frac {c^2}{2 a x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 88
Rubi steps
\begin {align*} \int \frac {(c+d x)^2}{x^3 (a+b x)} \, dx &=\int \left (\frac {c^2}{a x^3}+\frac {c (-b c+2 a d)}{a^2 x^2}+\frac {(-b c+a d)^2}{a^3 x}-\frac {b (-b c+a d)^2}{a^3 (a+b x)}\right ) \, dx\\ &=-\frac {c^2}{2 a x^2}+\frac {c (b c-2 a d)}{a^2 x}+\frac {(b c-a d)^2 \log (x)}{a^3}-\frac {(b c-a d)^2 \log (a+b x)}{a^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 60, normalized size = 0.90 \begin {gather*} -\frac {\frac {a c (a c+4 a d x-2 b c x)}{x^2}-2 \log (x) (b c-a d)^2+2 (b c-a d)^2 \log (a+b x)}{2 a^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(c+d x)^2}{x^3 (a+b x)} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.07, size = 93, normalized size = 1.39 \begin {gather*} -\frac {a^{2} c^{2} + 2 \, {\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} x^{2} \log \left (b x + a\right ) - 2 \, {\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} x^{2} \log \relax (x) - 2 \, {\left (a b c^{2} - 2 \, a^{2} c d\right )} x}{2 \, a^{3} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.99, size = 101, normalized size = 1.51 \begin {gather*} \frac {{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} \log \left ({\left | x \right |}\right )}{a^{3}} - \frac {{\left (b^{3} c^{2} - 2 \, a b^{2} c d + a^{2} b d^{2}\right )} \log \left ({\left | b x + a \right |}\right )}{a^{3} b} - \frac {a^{2} c^{2} - 2 \, {\left (a b c^{2} - 2 \, a^{2} c d\right )} x}{2 \, a^{3} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 110, normalized size = 1.64 \begin {gather*} \frac {d^{2} \ln \relax (x )}{a}-\frac {d^{2} \ln \left (b x +a \right )}{a}-\frac {2 b c d \ln \relax (x )}{a^{2}}+\frac {2 b c d \ln \left (b x +a \right )}{a^{2}}+\frac {b^{2} c^{2} \ln \relax (x )}{a^{3}}-\frac {b^{2} c^{2} \ln \left (b x +a \right )}{a^{3}}-\frac {2 c d}{a x}+\frac {b \,c^{2}}{a^{2} x}-\frac {c^{2}}{2 a \,x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.15, size = 88, normalized size = 1.31 \begin {gather*} -\frac {{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} \log \left (b x + a\right )}{a^{3}} + \frac {{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} \log \relax (x)}{a^{3}} - \frac {a c^{2} - 2 \, {\left (b c^{2} - 2 \, a c d\right )} x}{2 \, a^{2} x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.38, size = 89, normalized size = 1.33 \begin {gather*} -\frac {\frac {c^2}{2\,a}+\frac {c\,x\,\left (2\,a\,d-b\,c\right )}{a^2}}{x^2}-\frac {2\,\mathrm {atanh}\left (\frac {{\left (a\,d-b\,c\right )}^2\,\left (a+2\,b\,x\right )}{a\,\left (a^2\,d^2-2\,a\,b\,c\,d+b^2\,c^2\right )}\right )\,{\left (a\,d-b\,c\right )}^2}{a^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 1.39, size = 187, normalized size = 2.79 \begin {gather*} \frac {- a c^{2} + x \left (- 4 a c d + 2 b c^{2}\right )}{2 a^{2} x^{2}} + \frac {\left (a d - b c\right )^{2} \log {\left (x + \frac {a^{3} d^{2} - 2 a^{2} b c d + a b^{2} c^{2} - a \left (a d - b c\right )^{2}}{2 a^{2} b d^{2} - 4 a b^{2} c d + 2 b^{3} c^{2}} \right )}}{a^{3}} - \frac {\left (a d - b c\right )^{2} \log {\left (x + \frac {a^{3} d^{2} - 2 a^{2} b c d + a b^{2} c^{2} + a \left (a d - b c\right )^{2}}{2 a^{2} b d^{2} - 4 a b^{2} c d + 2 b^{3} c^{2}} \right )}}{a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________